package patrol.mobile.com.mobilepatrol.utils;

import android.app.Activity;
import android.content.Intent;

import patrol.mobile.com.mobilepatrol.activity.office.OfficeHomeActivity;

/**
 * Created by ABC on 2018/11/21.
 */

public class IntentUtils {

    public static void startUniteJump(Activity activity, String type) {
        switch (type) {
            case "0":
                activity.startActivity(new Intent(activity, OfficeHomeActivity.class));
//                startActivity(OfficeHomeActivity.class);//办公室
                CommonUtil.openNewActivityAnim(activity, false);
                break;
            case "1":
//                startActivity(YangHuActivity.class);//养护科
                CommonUtil.openNewActivityAnim(activity, false);
                break;
            case "2":
//                startActivity(MonitorManagerHomeActivity.class);//监控管理
                CommonUtil.openNewActivityAnim(activity, false);
                break;
            case "3":
                //startActivity(SecurityManagerHomeActivity.class);//安保管理 原安保管理界面
//                startActivity(SecurityManagerActivity.class);//安保管理
                CommonUtil.openNewActivityAnim(activity, false);
                break;
            case "4":
//                startActivity(TollManagerHomeActivity.class);//收费稽查以及服务区管理
                CommonUtil.openNewActivityAnim(activity, false);
                break;

        }
    }

}
